Skip to content

Instantly share code, notes, and snippets.

@ossa-ma
ossa-ma / tropes.md
Last active July 10, 2026 18:43
AI Writing Tropes to Avoid — tropes.fyi by ossama.is

AI Writing Tropes to Avoid

Add this file to your AI assistant's system prompt or context to help it avoid common AI writing patterns. Source: tropes.fyi by ossama.is


Word Choice

"Quietly" and Other Magic Adverbs

@hinjolicious
hinjolicious / tourbillon-watch-widget.red
Last active July 10, 2026 18:40
Tourbillon Watch Desktop Widget for Windows 8+ (Red Programming Language)
Red [
title: "Tourbillon Watch Desktop Widget for Windows 8+"
author: "hinjolicious"
note: {
Idea: @hiiamboris work on "Cellestial Clock".
Collaborator: Gemini AI
Tested: on Red Toolchain v0.66 in Windows 11
June 13th, 2026
}
needs: 'view
@TinoDidriksen
TinoDidriksen / CMakeLists.txt
Last active July 10, 2026 18:35
CMake find and use libevdev
project(example CXX)
find_package(PkgConfig REQUIRED)
pkg_search_module(LIBEVDEV REQUIRED libevdev)
add_executable(example example.cpp)
target_include_directories(example PRIVATE ${LIBEVDEV_INCLUDE_DIRS})
target_link_libraries(example PRIVATE ${LIBEVDEV_LIBRARIES})
@nafiskabbo
nafiskabbo / typescript-7-migration.md
Created July 8, 2026 18:34
TypeScript 6.x to 7.0 Migration Guide - Agent Guide

TypeScript 7.0 Migration Guide (Go-Native Compiler)

Status as of this writing (July 2026): TypeScript 7.0 is stable / generally available. It shipped as a Release Candidate on June 18, 2026, and Microsoft has now published the full "Announcing TypeScript 7.0" stable release. This guide reflects the stable release, not the RC. If you're reading this much later, sanity-check version numbers against https://devblogs.microsoft.com/typescript/ before running anything.

This doc is written so an AI coding agent (or a human) can follow it step-by-step to migrate a repo from TypeScript 6.x to TypeScript 7.0. Copy the "Agent Instructions"

@privatenumber
privatenumber / typescript-v5-to-v6.md
Created February 24, 2026 13:21
TypeScript 5.x to 6.0 Migration Guide

TypeScript 5.x to 6.0 Migration Guide

TypeScript 6.0 is a transition release bridging 5.9 and the forthcoming 7.0 (a native Go port). Most changes are new defaults and deprecations preparing for 7.0. Here is what you need to do:

Most projects need these tsconfig changes:

{
    "compilerOptions": {
        "types": ["node"],           // @types are no longer auto-discovered (see §1.6)

LLM Wiki

A pattern for building personal knowledge bases using LLMs.

This is an idea file, it is designed to be copy pasted to your own LLM Agent (e.g. OpenAI Codex, Claude Code, OpenCode / Pi, or etc.). Its goal is to communicate the high level idea, but your agent will build out the specifics in collaboration with you.

The core idea

Most people's experience with LLMs and documents looks like RAG: you upload a collection of files, the LLM retrieves relevant chunks at query time, and generates an answer. This works, but the LLM is rediscovering knowledge from scratch on every question. There's no accumulation. Ask a subtle question that requires synthesizing five documents, and the LLM has to find and piece together the relevant fragments every time. Nothing is built up. NotebookLM, ChatGPT file uploads, and most RAG systems work this way.

@aoudiamoncef
aoudiamoncef / AppProperties.java
Last active July 10, 2026 18:31
Spring Boot Custom Configuration Properties With Java Records + Validations + Metadata
package com.maoudia;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import jakarta.validation.constraints.Positive;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.boot.context.properties.bind.DefaultValue;
import org.springframework.validation.annotation.Validated;
import java.net.URI;
@Xanxancel
Xanxancel / Xanxancel.m3u
Created February 1, 2018 17:45
Xanxancel.m3u
#EXTM3U
#EXTINF:-1 tvg-id="Globorj.br" tvg-name="GLOBO RJ HD" tvg-logo="https://2.bp.blogspot.com/-wHhXOFoqjAE/Wg7x8KwqO_I/AAAAAAAABHI/WltMl3al1DgIWQRMEvqBc05s5OhXIJdsgCPcBGAYYCw/s1600/globorj.png" group-title="CANAIS GLOBO",GLOBO RJ HD
http://sv1.cineiptv.com:25461/live/xandecepe/yJDKanollr/812.ts
#EXTINF:-1 tvg-id="Globorj.br" tvg-name="GLOBO RJ *" tvg-logo="https://2.bp.blogspot.com/-wHhXOFoqjAE/Wg7x8KwqO_I/AAAAAAAABHI/WltMl3al1DgIWQRMEvqBc05s5OhXIJdsgCPcBGAYYCw/s1600/globorj.png" group-title="CANAIS GLOBO",GLOBO RJ *
http://sv1.cineiptv.com:25461/live/xandecepe/yJDKanollr/1394.ts
#EXTINF:-1 tvg-id="Globorj.br" tvg-name="GLOBO RJ DUAL" tvg-logo="https://2.bp.blogspot.com/-wHhXOFoqjAE/Wg7x8KwqO_I/AAAAAAAABHI/WltMl3al1DgIWQRMEvqBc05s5OhXIJdsgCPcBGAYYCw/s1600/globorj.png" group-title="CANAIS GLOBO",GLOBO RJ DUAL
http://sv1.cineiptv.com:25461/live/xandecepe/yJDKanollr/1465.ts
#EXTINF:-1 tvg-id="Globosp.br" tvg-name="GLOBO SP HD **" tvg-logo="https://2.bp.blogspot.com/-tQOcoYaCCzo/Wg7x8mUrc6I/AAAAAAAABHM/YnrKXD